<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/edgeGraph.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('edgeGraph_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">includes/edgeGraph.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;limits.h&gt;</code><br/>
<code>#include &lt;stdbool.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for edgeGraph.h:</div>
<div class="dyncontent">
<div class="center"><img src="edgeGraph_8h__incl.png" border="0" usemap="#includes_2edgeGraph_8h" alt=""/></div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="edgeGraph_8h__dep__incl.png" border="0" usemap="#includes_2edgeGraph_8hdep" alt=""/></div>
<map name="includes_2edgeGraph_8hdep" id="includes_2edgeGraph_8hdep">
<area shape="rect" id="node3" href="vehicleState_8h.html" title="includes/vehicleState.h" alt="" coords="347,83,505,112"/><area shape="rect" id="node27" href="operations_8h.html" title="includes/operations.h" alt="" coords="514,160,658,189"/><area shape="rect" id="node34" href="graph_8h.html" title="includes/graph.h" alt="" coords="666,237,783,267"/><area shape="rect" id="node5" href="add_8h.html" title="includes/add.h" alt="" coords="39,392,146,421"/><area shape="rect" id="node7" href="solution_8h.html" title="includes/solution.h" alt="" coords="273,237,403,267"/><area shape="rect" id="node18" href="remove_8h.html" title="includes/remove.h" alt="" coords="170,392,298,421"/><area shape="rect" id="node20" href="swap_8h.html" title="includes/swap.h" alt="" coords="453,392,567,421"/><area shape="rect" id="node9" href="los_8h.html" title="includes/los.h" alt="" coords="287,315,389,344"/><area shape="rect" id="node12" href="stm_8h.html" title="includes/stm.h" alt="" coords="322,392,429,421"/><area shape="rect" id="node16" href="ltm_8h.html" title="includes/ltm.h" alt="" coords="482,547,583,576"/><area shape="rect" id="node22" href="graphbmp-tools_8h.html" title="includes/graphbmp&#45;tools.h" alt="" coords="39,315,213,344"/><area shape="rect" id="node14" href="LTMConfiguration_8h.html" title="includes/LTMConfiguration.h" alt="" coords="343,469,530,499"/><area shape="rect" id="node39" href="main-tools_8h.html" title="includes/main&#45;tools.h" alt="" coords="767,315,911,344"/><area shape="rect" id="node41" href="parser_8h.html" title="includes/parser.h" alt="" coords="935,315,1055,344"/></map>
</div>
</div>
<p><a href="edgeGraph_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structEdgeGraph.html">EdgeGraph</a></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#aa84a29002ab81c719c0d07bb446296e0">INFINITE</a>&#160;&#160;&#160;(INT_MAX/6)*5</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">gestisce le carattieristiche fisiche e statiche del grafo  <a href="#aa84a29002ab81c719c0d07bb446296e0"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structEdgeGraph.html">EdgeGraph</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#a66629b76830592b4318cfd331efc6155">EdgeGraph</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structEdgeGraph.html">EdgeGraph</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structEdgeGraph.html">EdgeGraph</a> **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#a99eb4bbd90d5189d67a730c9727e409f">AdjMat</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#a95f9c6ff1c562ec74f0ef9569de41098">initEdgeGraph</a> (int t, int d, float p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#abab1d44285f17a71106a31880ca942c3">freeEdgeGraph</a> (<a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a> edge)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#ae7b6e7996ecfcbaea8d7eed1f2fc6829">isEdgeGraphExist</a> (<a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a> edge)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#a05a341a271de5803841b09e7f344f982">isEdgeGraphProfitable</a> (<a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a> p_edgeGraph)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="edgeGraph_8h.html#a7d0911d6fbb76874038f0d59022f1eef">printEdgeGraph</a> (FILE *f, <a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a> p_edge)</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="aa84a29002ab81c719c0d07bb446296e0"></a><!-- doxytag: member="edgeGraph.h::INFINITE" ref="aa84a29002ab81c719c0d07bb446296e0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="edgeGraph_8h.html#aa84a29002ab81c719c0d07bb446296e0">INFINITE</a>&#160;&#160;&#160;(INT_MAX/6)*5</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>gestisce le carattieristiche fisiche e statiche del grafo </p>
<p><a class="el" href="edgeGraph_8h.html">edgeGraph.h</a></p>
<p><a class="el" href="structEdgeGraph.html">EdgeGraph</a> e' una struttura che rappresenta i tempi, le quantita' e profitti inerenti ad un arco del grafo.</p>
<p>Created on: May 22, 2013 Author: koldar valore dei tempi che viene attribuito agli archi non esistenti nel grafo </p>

</div>
</div>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="a99eb4bbd90d5189d67a730c9727e409f"></a><!-- doxytag: member="edgeGraph.h::AdjMat" ref="a99eb4bbd90d5189d67a730c9727e409f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structEdgeGraph.html">EdgeGraph</a>** <a class="el" href="edgeGraph_8h.html#a99eb4bbd90d5189d67a730c9727e409f">AdjMat</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Un type di comodo per rendere il più chiaro possibile il codice </p>

</div>
</div>
<a class="anchor" id="a66629b76830592b4318cfd331efc6155"></a><!-- doxytag: member="edgeGraph.h::EdgeGraph" ref="a66629b76830592b4318cfd331efc6155" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structEdgeGraph.html">EdgeGraph</a>  <a class="el" href="structEdgeGraph.html">EdgeGraph</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>rappresenta una struttura contenente parametri statici di un arco di un grafo. Un grafo e' composto principalmente da una matrice di queste strutture </p>

</div>
</div>
<a class="anchor" id="ae9263bc51f20141d45a0d487fbbb9985"></a><!-- doxytag: member="edgeGraph.h::PedgeGraph" ref="ae9263bc51f20141d45a0d487fbbb9985" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structEdgeGraph.html">EdgeGraph</a>* <a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Una matrice di adiacenza come un array di archi, ordinato con una certa lessicografica. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="abab1d44285f17a71106a31880ca942c3"></a><!-- doxytag: member="edgeGraph.h::freeEdgeGraph" ref="abab1d44285f17a71106a31880ca942c3" args="(PedgeGraph edge)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="edgeGraph_8h.html#abab1d44285f17a71106a31880ca942c3">freeEdgeGraph</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a>&#160;</td>
          <td class="paramname"><em>edge</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>elimina le caratteristiche fisiche dell'arco dalla memoria</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>edge non nullo</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">edge</td><td>l'edge da eliminare dalla memoria </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a95f9c6ff1c562ec74f0ef9569de41098"></a><!-- doxytag: member="edgeGraph.h::initEdgeGraph" ref="a95f9c6ff1c562ec74f0ef9569de41098" args="(int t, int d, float p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a> <a class="el" href="edgeGraph_8h.html#a95f9c6ff1c562ec74f0ef9569de41098">initEdgeGraph</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>costruisce un nuovo edge. Utile in combinazione con graph.am[x][y]=edge.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>indica il costo temporale dell'arco </td></tr>
    <tr><td class="paramname">d</td><td>indica la domanda richiesta dall'arco </td></tr>
    <tr><td class="paramname">p</td><td>indica il profitto ricavabile dall'arco </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae7b6e7996ecfcbaea8d7eed1f2fc6829"></a><!-- doxytag: member="edgeGraph.h::isEdgeGraphExist" ref="ae7b6e7996ecfcbaea8d7eed1f2fc6829" args="(PedgeGraph edge)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="edgeGraph_8h.html#ae7b6e7996ecfcbaea8d7eed1f2fc6829">isEdgeGraphExist</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a>&#160;</td>
          <td class="paramname"><em>edge</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">edge</td><td>l'arco da verificare </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE se l'arco viene considerato dall'algoritmo a tempo infinito, FALSE altrimenti </dd></dl>

</div>
</div>
<a class="anchor" id="a05a341a271de5803841b09e7f344f982"></a><!-- doxytag: member="edgeGraph.h::isEdgeGraphProfitable" ref="a05a341a271de5803841b09e7f344f982" args="(PedgeGraph p_edgeGraph)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="edgeGraph_8h.html#a05a341a271de5803841b09e7f344f982">isEdgeGraphProfitable</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a>&#160;</td>
          <td class="paramname"><em>p_edgeGraph</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>vero sse domanda E profitto dell'arco sono non nulli. </dd></dl>

</div>
</div>
<a class="anchor" id="a7d0911d6fbb76874038f0d59022f1eef"></a><!-- doxytag: member="edgeGraph.h::printEdgeGraph" ref="a7d0911d6fbb76874038f0d59022f1eef" args="(FILE *f, PedgeGraph p_edge)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="edgeGraph_8h.html#a7d0911d6fbb76874038f0d59022f1eef">printEdgeGraph</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="edgeGraph_8h.html#ae9263bc51f20141d45a0d487fbbb9985">PedgeGraph</a>&#160;</td>
          <td class="paramname"><em>p_edge</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>chissene </p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="edgeGraph_8h.html">edgeGraph.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:36 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
